<include target="_header.html" />
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/resource/tpl/insert/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
	<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form action="./" method="post" class="x_form-horizontal" ruleset="insertResource">
	<input type="hidden" name="module" value="resource" />
	<input type="hidden" name="act" value="procResourceAdminInsert" />
	<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
	<input type="hidden" name="xe_validator_id" value="modules/resource/tpl/insert/1" />
	<input cond="$mid || $module_srl" type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
	<div class="x_control-group" cond="$logged_info->is_admin=='Y'">
		<label class="x_control-label" for="mid">{$lang->mid}</label>
		<div class="x_controls">
			<input type="text" name="resource_name" id="mid" value="{$module_info->mid}" />
			<a href="#about_mid" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
			<p class="x_help-block" id="about_mid" hidden>{$lang->about_mid}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="module_category_srl">{$lang->module_category}</label>
		<div class="x_controls">
			<select name="module_category_srl" id="module_category_srl">
				<option value="0">{$lang->notuse}</option>
				<option loop="$module_category => $key,$val" value="{$key}" selected="selected"|cond="$module_info->module_category_srl==$key">{$val->title}</option>
			</select>
			<a href="#about_module_category" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
			<p class="x_help-block" id="about_module_category" hidden>{$lang->about_module_category}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="lang_browser_title">{$lang->browser_title}</label>
		<div class="x_controls">
			<input type="text" name="browser_title" id="browser_title" class="lang_code" value="<!--@if(strpos($module_info->browser_title, '$user_lang->') === false)-->{$module_info->browser_title}<!--@else-->{htmlspecialchars($module_info->browser_title)}<!--@end-->" />
			<a href="#about_browser_title" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
			<p class="x_help-block" id="about_browser_title" hidden>{$lang->about_browser_title}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="layout_srl">{$lang->layout}</label>
		<div class="x_controls">
			<select name="layout_srl" id="layout_srl">
				<option value="0">{$lang->notuse}</option>
				<option loop="$layout_list => $key,$val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->layout_srl==$val->layout_srl">{$val->title}({$val->layout})</option>
			</select>
			<a href="#about_layout" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
			<p class="x_help-block" id="about_layout" hidden>{$lang->about_layout}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="skin">{$lang->skin}</label>
		<div class="x_controls">
			<select name="skin" id="skin">
				<option loop="$skin_list => $key,$val" value="{$key}" selected="selected"|cond="$module_info->skin==$key">{$val->title}</option>
			</select>
			<a href="#about_skin" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
			<p class="x_help-block" id="about_skin" hidden>{$lang->about_skin}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="use_mobile">{$lang->mobile_view}</label>
		<div class="x_controls">
			<label for="use_mobile" class="x_inline">
				<input type="checkbox" name="use_mobile" id="use_mobile" value="Y" checked="checked"|cond="$module_info->use_mobile == 'Y'" />
				{$lang->about_mobile_view}
			</label>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="mlayout_srl">{$lang->mobile_layout}</label>
		<div class="x_controls">
			<select name="mlayout_srl" id="mlayout_srl">
				<option value="0">{$lang->notuse}</option>
				<option loop="$mlayout_list => $key,$val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->mlayout_srl==$val->layout_srl">{$val->title}({$val->layout})</option>
			</select>
			<a href="#about_mobile_layout" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
			<p class="x_help-block" id="about_mobile_layout" hidden>{$lang->about_layout}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="mskin">{$lang->mobile_skin}</label>
		<div class="x_controls">
			<select name="mskin" id="mskin">
				<option loop="$mskin_list => $key,$val" value="{$key}" selected="selected"|cond="$module_info->mskin==$key ||(!$module_info->mskin && $key=='default')">{$val->title}</option>
			</select>
			<a href="#about_mobile_skin" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
			<p class="x_help-block" id="about_mobile_skin" hidden>{$lang->about_skin}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="resource_use_path">{$lang->resource_use_path}</label>
		<div class="x_controls">
			<label for="resource_use_path" class="x_inline">
				<input type="checkbox" name="resource_use_path" id="resource_use_path" value="Y" checked="checked"|cond="$module_info->resource_use_path=='Y'" />
				{$lang->about_resource_use_path}
			</label>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="list_count">{$lang->list_count}</label>
		<div class="x_controls">
			<input type="number" name="list_count" id="list_count" value="{$module_info->list_count?$module_info->list_count:20}"   />
			<a href="#about_list_count" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
			<p class="x_help-block" id="about_list_count" hidden>{$lang->about_list_count}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="resource_notify_mail">{$lang->resource_notify_mail}</label>
		<div class="x_controls">
			<input type="email" name="resource_notify_mail" id="resource_notify_mail" value="{htmlspecialchars($module_info->resource_notify_mail)}" />
			<a href="#about_resource_notify_mail" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
			<p class="x_help-block" id="about_resource_notify_mail" hidden>{$lang->about_resource_notify_mail}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="description">{$lang->description}</label>
		<div class="x_controls">
			<textarea name="description" id="description" rows="4" cols="42" style="vertical-align:top">{htmlspecialchars($module_info->description)}</textarea>
			<a href="#about_description" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
			<p class="x_help-block" id="about_description" hidden>{$lang->about_description}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="lang_header_text">{$lang->header_text}</label>
		<div class="x_controls">
			<textarea name="header_text" id="header_text" rows="4" cols="42" class="lang_code"><!--@if(strpos($module_info->header_text, '$user_lang->') === false)-->{$module_info->header_text}<!--@else-->{htmlspecialchars($module_info->header_text)}<!--@end--></textarea>
			<a href="#about_header_text" class="x_icon-question-sign" data-toggle style="vertical-align:top;margin-top:5px">{$lang->help}</a>
			<p class="x_help-block" id="about_header_text" hidden>{$lang->about_header_text}</p>
		</div>
	</div>
	<div class="x_control-group">
		<label class="x_control-label" for="lang_footer_text">{$lang->footer_text}</label>
		<div class="x_controls">
			<textarea name="footer_text" id="footer_text" rows="4" cols="42" class="lang_code"><!--@if(strpos($module_info->footer_text, '$user_lang->') === false)-->{$module_info->footer_text}<!--@else-->{htmlspecialchars($module_info->footer_text)}<!--@end--></textarea>
			<a href="#about_footer_text" class="x_icon-question-sign" data-toggle style="vertical-align:top;margin-top:5px">{$lang->help}</a>
			<p class="x_help-block" id="about_footer_text" hidden>{$lang->about_footer_text}</p>
		</div>
	</div>
	<div class="btnArea">
		<a cond="$module == 'admin'" class="x_btn x_pull-left" href="{getUrl('act', 'dispResourceAdminList', 'module_srl', '')}">{$lang->cmd_back}</a>
		<a cond="!$module" class="x_btn x_pull-left" href="{getUrl('act', '')}">{$lang->cmd_back}</a>
		<input class="x_btn  x_btn-primary" type="submit" value="{$lang->cmd_registration}" />
	</div>
</form>
